<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Register.aspx.cs" Inherits="Register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
 <script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>

    <script src="js/jquery.validate.min.js" type="text/javascript"></script>

    <script src="js/validate.js" type="text/javascript"></script>
    <script type="text/javascript">
	function refreshCaptcha () {
		var code = document.getElementById('imgCaptcha');
		code.src = code.src; // that is the essence here
	}
    </script>

    <div class="content_general">
        <div class="make_global">
            <div class="make_global_left">
                <img src="images/icon_make_global.jpg" width="67" height="60" alt="icon" /></div>
            <div class="make_global_right">
                Make Global Trade Easy!<br />
                <span>Just complete this simple form, It takes less than a minute!</span>
            </div>
            <div class="clr">
            </div>
        </div>
        <div class="text_form_general red mt_20px">
            Register information</div>
        <div class="form_general mt_10px">
        <span style="color:Red; text-align:center; margin-left:350px;">
            <asp:Literal ID="ltrErr" runat="server"></asp:Literal></span>
            <div class="formrow">
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator1" runat="server"
                    ControlToValidate="txtEmail" ErrorMessage="<div class='field_error' style='position: absolute; top: 3px; left: 615px;'>
                    Please enter your Email</div>"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                        Display="Dynamic" ID="RegularExpressionValidator1" runat="server" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail"
                        ErrorMessage="<div class='field_error' style='position: absolute; top: 3px; left: 642px;'>
                    Please enter a valid Email Address</div>"></asp:RegularExpressionValidator>
               
                <div class="lb_largest right fl">
                    Email:</div>
                <input type="text" class="textbox_medium fl" id="txtEmail" runat="server" />
                <span class="red1">(*)</span>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator2" runat="server"
                    ControlToValidate="txtPassword" ErrorMessage="<div class='field_error' style='position: absolute; top: 3px; left: 615px;'>
                    Please enter your password</div>"></asp:RequiredFieldValidator>
                     <asp:Literal Visible="false" ID="ltrMesM" runat="server" Text="<div class='field_error' style='position: absolute; top: 3px; left: 615px;'>
                    Password should be 6-20 characters long (A-Z, a-z, 0-9, no spaces).</div>" ></asp:Literal>
                <div class="lb_largest right fl">
                    Password:</div>
                <input type="password" class="textbox_medium fl" id="txtPassword" runat="server" />
                <span class="red1">(*)</span>
                <div class="form_general_right form_note">
                    6 to 20 characters. (A-Z, a-z, 0-9, no space)</div>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <asp:CompareValidator Display="Dynamic" ControlToValidate="txtRetypePassword" ControlToCompare="txtPassword"
                    ID="cpass" runat="server" ErrorMessage="<div class='field_error' style='position: absolute; top: 3px; left: 615px;'>
                    Passwords are not the same</div>"></asp:CompareValidator>
                <div class="lb_largest right fl">
                    Confirm Password:
                </div>
                <input type="password" class="textbox_medium fl" id="txtRetypePassword" runat="server" />
                <span class="red1">(*)</span>
                <div class="clr">
                </div>
            </div>
        </div>
        <div class="text_form_general red mt_20px">
            Contact information</div>
        <div class="form_general mt_10px">
            <div class="formrow">
                <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator3" runat="server"
                    ControlToValidate="txtFullName" ErrorMessage="<div class='field_error' style='position: absolute; top: 3px; left: 615px;'>
                    Please enter your FullName</div>"></asp:RequiredFieldValidator>
                <div class="lb_largest right fl">
                    Full name:
                </div>
                <input type="text" class="textbox_medium fl" id="txtFullName" runat="server" />
                <span class="red1">(*)</span>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Gender:</div>
                <input type="radio" class="radio fl" id="rdoML" runat="server" />
                <div class="fl text_normal">
                    Mr/Ms
                </div>
                <input type="radio" class="radio fl" id="rdoMale" runat="server" />
                <div class="fl text_normal">
                    Mr
                </div>
                <input type="radio" class="radio fl" id="rdiFemale" runat="server" />
                <div class="fl text_normal">
                    Ms
                </div>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Address:
                </div>
                <input type="text" class="textbox_medium fl" id="txtAddress" runat="server" />
               <%-- <span class="red1">(*)</span>--%>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
             <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator4" runat="server"
                    ControlToValidate="txtTel" ErrorMessage="<div class='field_error' style='position: absolute; top: 3px; left: 515px;'>
                    Please enter your Telephone</div>"></asp:RequiredFieldValidator>
                <div class="lb_largest right fl">
                    Telephone:
                </div>
                <input type="text" class="textbox_small fl" id="txtTel" runat="server" onkeyup="this.value = FormatNumber(this.value);" />
                <span class="red1">(*)</span>
                <div class="form_general_right form_note">
                    Ex: (84-8) 38641828
                </div>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Fax:
                </div>
                <input type="text" class="textbox_small fl" id="txtFax" runat="server" onkeyup="this.value = FormatNumber(this.value);" />
              
                <div class="form_general_right form_note">
                    Ex: (84-8) 38641828
                </div>
                <div class="clr">
                </div>
            </div>
            <div class="formrow">
                <div class="lb_largest right fl">
                    Security code:
                </div>
               <input id="txtAuthentic" type="text" style="text-transform: uppercase; width: 140px;"
        onkeypress="return handleEnter(this, event);" runat="server" maxlength="5" class="textbox_small fl" />
             
                <span class="red1 fl">(*)</span>
                <iframe name="security-code" id="imgCaptcha" src="TestCapcha.aspx" class="fram" frameborder="0" class="f1" style="margin-left: 5px; height: 35px; float:left; width:100px;" 
                    scrolling="no"></iframe>
               
                <a href="javascript:refreshCaptcha();">
                    <img alt="refesh" src="images/icon_refresh.gif" width="27" height="26" 
                        border="0" class="fl" style="margin-left: 5px;" /></a>
                <div class="clr">
                </div>
            </div>
        </div>
    </div>
    <div class="mt_10px" style="padding-left: 306px;">
        <asp:LinkButton ID="linkNext" runat="server" CausesValidation="true" OnClick="linkNext_Click" CssClass="btn_general fl"><span class="fl">CONTINUES </span><img alt="next" src="images/next.gif" width="15" height="14" class="fl"  style="padding:6px 5px 0 0px;"/></asp:LinkButton>
        <div class="clr">
        </div>
    </div>
</asp:Content>
